package com.sy.ptp.response;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

@Getter
@Setter
public class PtpBaseResponse<T> {

    private String msg;

    private T data;

    private Integer code;

    public boolean isSuccess() {
        return Objects.equals(code, 200);
    }
}
